package com.travel.api.beans.request

class BaseRequest {
    private var pageSize: Int = 0
    private var pageNo: Int = 0

    fun getPageSize(): Int {
        if (pageSize < 1)
            pageSize = 10
        return pageSize
    }

    fun setPageSize(pageSize: Int?) {
        this.pageSize = pageSize!!
    }

    fun getPageNo(): Int {
        if (pageNo < 1)
            pageNo = 1
        return pageNo
    }

    fun setPageNo(pageNo: Int?) {
        this.pageNo = pageNo!!
    }
}
